import request from '@/utils/request'

// 查询安全措施管理列表
export function listSafetyManagement(query) {
  return request({
    url: '/person/safetyManagement/list',
    method: 'get',
    params: query
  })
}

// 查询安全措施管理详细
export function getSafetyManagement(id) {
  return request({
    url: '/person/safetyManagement/' + id,
    method: 'get'
  })
}

// 新增安全措施管理
export function addSafetyManagement(data) {
  return request({
    url: '/person/safetyManagement',
    method: 'post',
    data: data
  })
}

// 修改安全措施管理
export function updateSafetyManagement(data) {
  return request({
    url: '/person/safetyManagement',
    method: 'put',
    data: data
  })
}

// 删除安全措施管理
export function delSafetyManagement(id) {
  return request({
    url: '/person/safetyManagement/' + id,
    method: 'delete'
  })
}

export function listAllSafetyManagement(query) {
  return request({
    url: '/person/safetyManagement/listAll',
    method: 'get',
    params: query
  })
}
